const express = require('express');
const app = express();
app.use(express.static('./public'));
const bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({extended:false}));
app.post('/data',(req,res)=>{
  console.log(req.body);
  res.send('ok');
})
app.listen(3000);
console.log('正在监听端口3000,http://127.0.0.1:3000')